<?php
$page_title="Manage Sevadhari Development Program - List";
	include("includes/header.php");
?>
<?
$query="select * from bkitc_seva_dev_prg where rec_status>=1 ";
$sevadevprgInfo = qry_data($query." order by devprg_title asc");

?>
	<div class="fleft">
		<ul class="subMenu">
		<li><a href="edit_sevadevprg.php?mode=add" >Add New </a></li>
		
		</ul>
		</div>		
		<div class="cleardiv">
		
		</div>
<table width="100%" >
	<tr>
	<td valign="top">
		
	<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4">
	<tr  align="left">
	<th width="5">S.No</th>

	<th style="width:120px">Title</th>

	<th >Desc </th>
	<th >Date </th>
	<th >Created On </th>
	<th>Last Updated</th>
	<th >Edit/Delete</th>
	</tr>
	<? foreach($sevadevprgInfo as $i=>$sevadevprg) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?>>
	<td><?=$i+1;?></td>

	<td ><?=$sevadevprg["devprg_title"];?></td>

	<td><?=substr(strip_tags($sevadevprg["devprg_desc"]),0,20);?></td>
	<td ><?=$sevadevprg["devprg_date"];?></td>
	<td><?=$sevadevprg["rec_created"]?></td>
	<td><?=$sevadevprg["last_updated"]?></td>
	
	<td>
		<a href="edit_sevadevprg.php?mode=edit&devprg_id=<?=$sevadevprg["sevadev_prg_id"];?>">Edit</a> | 
		<a  href="javascript:if(confirm('Are you sure to delete this Development Program?')) location.href='edit_sevadevprg.php?mode=del&devprg_id=<?=$sevadevprg["sevadev_prg_id"];?>'";>Delete</a> 
	</td>
	</tr>
	
	<? } ?>
	</table>
	
	</td>
	</tr>
	
	</table>

<?php include("includes/footer.php"); ?>

